package com.xiaoma.verbal.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xiaoma.verbal.cache.QuestionTimeCoordinateCacheListener;
import com.xiaoma.verbal.helper.QuestionListener;

@Service
public class BaseQuestionService {
	private List<QuestionListener> listenerList = new ArrayList<QuestionListener>();

	public void afterChanger() {
		for (QuestionListener listener : listenerList) {
			listener.afterChange();
		}

	}

	@Autowired
	public void setQuestionTimeCoordinateCacheListener(QuestionTimeCoordinateCacheListener questionTimeCoordinateCacheListener) {
		listenerList.add(questionTimeCoordinateCacheListener);
	}

	

}
